package com.bamboo.toolbox.core.utils;

import java.io.*;
import java.util.Arrays;

/**
 * @author luzhiqing
 * @version 1.0
 * @date 2022/10/21
 */
public class FileUtils {
    public static byte[] read(String path) {

        File file = new File(path);
        try {
           return org.apache.commons.io.FileUtils.readFileToByteArray(file);
        } catch (IOException e) {
            throw new RuntimeException("文件读取异常");
        }
    }

}
